import request from "../../utils/request.js";

/**
 * 告警管理列表和条件查询
 * @param {*} data 
 * @returns 
 */
export const getAlarmList_Api = (query) => request.get("/automated/Intelligent/MonitorHost/alarm", {
    params: query
});


/**
 * 告警处理
 * @param {*} data 
 * @returns 
 */
export const alarmHandle_Api = (data) => request.post("/automated/Intelligent/MonitorHost/solve", data)


/**
 * 新的工单启动接口
 * @param {*} data 
 * @returns 
 */
export const newStart_Api = (data) => request.post("/workflow/process/new/event/start", data)

/**
 * 查询工单关联列表
 * @param {*}  
 * @returns 
 */
export const getEventList_Api = () => request.get("/workflow/process/event/base/list")


/**
 * 查询添加工单告警列表
 * @param {*}  
 * @returns 
 */
export const getEventAlarmList_Api = (query) => request.get("/workflow/process/event/data/list", {
    params: query
})



/**
 * 查询告警表单
 * @param {*} query 
 * @returns 
 */
export const getEventForm_Api = (query) => request.get("/workflow/process/event/base/form", {
    params: query
})